#ifndef CONFIG_H
#define CONFIG_H
#include <QtDebug>
const QString untitle = "untitle";
const QString SoftwareName = "QNotepad";
const int Width = 791;
const int Height = 451;
const int DelHeight =60;
struct TabInfo
{
	public :
		TabInfo(const QString& DirName,const QString& FileName)
		{
			this->DirName = DirName;
			this->FileName = FileName;
		}

		QString DirName;
		QString FileName;
};

const QString confpath ="/.qnotepad/setting.conf";
//const QString ConfPath = "setting.conf";
const int MAXRECENTFILECOUNT =11;
enum EolType{
	Unix,
	Windows,
	Mac
};

enum HightLight
{
	Normal,
	Cpp,
	Java,
	Lua,
	Python,
	XML,
	Perl,
	PHP,
	Ruby,
	Javascript,
	HTML,
	SQL,
	CSS,
	Bash
};

const QString TickPngPath = "./image/tick.png";

inline QString GetExt(const QString& FileName)
{
	int ExtLength = FileName.lastIndexOf(".");
	QString Ext = ((ExtLength > 0) ? FileName.right(FileName.length() - ExtLength -1): "");
	return Ext;
}
#endif
